package com.hyc.seckillsystem.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @projectName: seckillsystem
 * @package: com.hyc.seckillsystem.pojo
 * @className: order
 * @author: 冷环渊 doomwatcher
 * @description: TODO
 * @date: 2022/3/8 13:55
 * @version: 1.0
 */
@TableName("Goodsorder")
public class order {
    // 主键自增 前提主键auto
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String order_id;
    private String user_id;
    private String goods_id;
    private String telephone;
    private String address;

    @Override
    public String toString() {
        return "order{" +
                "id=" + id +
                ", order_id='" + order_id + '\'' +
                ", user_id='" + user_id + '\'' +
                ", goods_id='" + goods_id + '\'' +
                ", telephone='" + telephone + '\'' +
                ", address='" + address + '\'' +
                '}';
    }

    public order(int id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public order() {
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(String goods_id) {
        this.goods_id = goods_id;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public order(Integer id, String order_id, String user_id, String goods_id, String telephone, String address) {
        this.id = id;
        this.order_id = order_id;
        this.user_id = user_id;
        this.goods_id = goods_id;
        this.telephone = telephone;
        this.address = address;
    }

    public order(String order_id, String user_id, String goods_id, String telephone, String address) {
        this.order_id = order_id;
        this.user_id = user_id;
        this.goods_id = goods_id;
        this.telephone = telephone;
        this.address = address;
    }


}
